package ch12;

class ThreadEx02 {
	public static void main(String args[]) throws Exception {
		MyThreadEx02_1 t1 = new MyThreadEx02_1();
		t1.start();
	}
}

class MyThreadEx02_1 extends Thread {
	public void run() {
		throwException();
	}

	public void throwException() {
		try {
			throw new Exception();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
/*
java.lang.Exception
at ch12.MyThreadEx02_1.throwException(ThreadEx02.java:17)
at ch12.MyThreadEx02_1.run(ThreadEx02.java:12)
*/